import { defineStore } from 'pinia'

export const useStore = defineStore('storeId', {
  state: () => {
    return { 
      num:0,
      name:'张三',
    }
  },
  getters:{
   changeNum(){
    return this.num + 1000;
   }
  },
  actions: {
   upNum(vul){
    this.num += vul;
   }
  },
})